package com.azxc.rapid.plus.resource.feign;

import com.azxc.rapid.core.oss.model.RapidFile;
import com.azxc.rapid.core.tool.api.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;


@Component
public class IAttachPlusClientFallback implements IAttachPlusClient {

	@Override
	public R<RapidFile> putBase64(String fileName, String key){
		return R.fail("上传附件失败");
	}

	@Override
	public R<RapidFile> putBase64Replace(String fileName, String key, @RequestParam("replace")boolean replace){
		return R.fail("上传附件失败");
	}

	@Override
	public R<RapidFile> unLoginPutFile(MultipartFile file){
		return R.fail("上传附件失败");
	}

	@Override
	public R<RapidFile> unLoginPutFileReplace(MultipartFile file, boolean replace) {
		return R.fail("上传附件失败");
	}

	@Override
	public R removeFileByName(@RequestParam("fileName")String fileName) {
		return R.fail("删除附件失败");
	}

	@Override
	public R removeFileById(@RequestParam("attachId")Long attachId) {
		return R.fail("删除附件失败");
	}

	@Override
	public R removeFileByLink(@RequestParam("link")String link) {
		return R.fail("删除附件失败");
	}

}
